@import '@/app/styles/variables';

.modal {
  background-color: #fff;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  z-index: 15 !important;
  overscroll-behavior: contain !important;
}

.no_padding {
  padding: 0px !important;
}

.null {
  padding: 0;
}

.mobile {
  display: none;
}

.footer {
  margin-bottom: 70px;
}

.prevent_stroke {
  border: 0;
}

.stroke {
  border-bottom: 1px solid #e1e1e1;
}

.back {
  margin: 16px 0;
}

.cross {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  z-index: 10;
  padding: 4px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 24px;
  top: 24px;
  width: 32px;
  z-index: 10;
  height: 32px;
  border-radius: 133.333px;
  background: var(--Simple-Gray-Morning, #F3F3F3);

  &:hover {
    background: #E1E1E1;
    color: #ABABAB;
  }
}

@include media(sm) {

  .cross {
    top: 16px;
    right: 16px;
    padding: 0px;
    width: 24px;
    height: 24px;

    svg {
      transform: scale(calc(16/24))
    }
  }
}


@include media(sm) {
  .modal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background-color: #fff;
    padding-bottom: 170px;
  }

  .mobile {
    display: flex;
  }
}